import './src/commons/Component'
import React, { BaseComponent } from 'react';
import { AppRegistry, SafeAreaView, StatusBar } from 'react-native';
import { Provider } from '@ant-design/react-native';

import Routes from './src/routes';
import { name } from './app.json';

export default class App extends BaseComponent {
    render() {
        return (
            <Provider>
                <StatusBar backgroundColor={'#3e7fbf'}/>
                <SafeAreaView style={{flex: 1, backgroundColor: '#fff'}}>
                    <Routes />
                </SafeAreaView>
            </Provider>
        );
    }
}

AppRegistry.registerComponent(name, () => App);
